package graph.visitors;

import java.util.LinkedList;
import java.util.List;

import org.eclipse.jdt.core.dom.ASTVisitor;
import org.eclipse.jdt.core.dom.MethodInvocation;

public class MethodInvocationVisitor extends ASTVisitor {
	
	private List<MethodInvocation> _methodInvocations = new LinkedList<MethodInvocation>();
	
	@Override
	public boolean visit(MethodInvocation node) {
		_methodInvocations.add(node);
		return super.visit(node);
	}
	
	public List<MethodInvocation> getMethodInvocations() {
		return _methodInvocations;
	}
	

}
